local zhuanzhan = fk.CreateSkill {
    name = "jin_heg__zhuanzhan",
    tags = { Skill.Compulsory },
}

Fk:loadTranslationTable {
    ["jin_heg__zhuanzhan"] = "转战",
    [":jin_heg__zhuanzhan"] = "锁定技，若存在有未确定势力的角色，你使用【杀】不能指定已确定势力的角色且无距离限制。",
}

local H = require "packages.ol_hegemony.util"

zhuanzhan:addEffect("prohibit", {
    is_prohibited = function(self, from, to, card)
        return from and from:hasShownSkill(zhuanzhan.name) and card.trueName == "slash" and H.getKingdom(to) ~= "unknown" and
        table.find(Fk:currentRoom().alive_players, function(p) return H.getKingdom(p) == "unknown" end)
    end,
})

zhuanzhan:addEffect("targetmod", {
    bypass_distances = function(self, player, skill, card, to)
        return player:hasShownSkill(zhuanzhan.name) and card.trueName == "slash" and to and H.getKingdom(to) == "unknown"
    end,
})

return zhuanzhan
